<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<link href="{dede:global.cfg_templets_skin/}/css/style.css" rel="stylesheet" type="text/css"/>
<link href="{dede:global.cfg_templets_skin/}/css/layout.css" rel="stylesheet" type="text/css"/>
<link href="{dede:global.cfg_templets_skin/}/css/layout_about.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery.masonry.min.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/waterfall.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/scrolltop.js"></script>

<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery.js"></script>
<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery.lazyload.js"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>

<script language="javascript">
$(document).ready(function(){
//user login
	$("#login ul.child").removeClass("child");

	$("#login li").has("ul").hover(function(){
		$(this).addClass("current").children("ul").fadeIn();
	}, function() {
		$(this).removeClass("current").children("ul").hide();
	});

});


var Img = "{dede:global.cfg_templets_skin/}/images/lazyload.gif";
			jQuery.noConflict()(function(){
				jQuery.noConflict()("img").lazyload({placeholder:Img,effect:"fadeIn"});
			});

function CheckLogin(){
	var taget_obj = document.getElementById('_ajax_feedback');
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	DedeXHTTP = null;
}
function checkSubmit(){
	if(document.feedback.msg.value!='') document.feedback.submit();
	else alert("评论内容不能为空！");
}
function postBadGood(ftype,fid)
{
	var taget_obj = document.getElementById(ftype+fid);
	var saveid = GetCookie('badgoodid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==fid && hasid) continue;
			else {
				if(saveids[i]==fid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==10 && hasid) break;
				if(j==9 && !hasid) break;
			}
		}
		if(hasid) { alert('您刚才已表决过了喔！'); return false;}
		else saveid += ','+fid;
		SetCookie('badgoodid',saveid,1);
	}
	else
	{
		SetCookie('badgoodid',fid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
	DedeXHTTP = null;
}
function postDigg(ftype,aid)
{
	var taget_obj = document.getElementById('newdigg_'+aid);
	var saveid = GetCookie('digg_'+aid);
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==aid && hasid) continue;
			else {
				if(saveids[i]==aid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==20 && hasid) break;
				if(j==19 && !hasid) break;
			}
		}
		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }
		else saveid += ','+aid;
		SetCookie('diggid',saveid,1);
	}
	else
	{
		SetCookie('digg_'+aid,aid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
	myajax.SendGet2(url);
	DedeXHTTP = null;
}
function getDigg(aid)
{
	var taget_obj = document.getElementById('newdigg');
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
	DedeXHTTP = null;
}


</script>
</head>
<body>
<div id="#root">
<div class="header">
    {dede:include filename="head.htm"/}
</div>

<!-- 内容 -->
<div class="body clear">
	<div class="list">
		<ul class="clear" id="content">

            {dede:list pagesize='80'}
			<!-- 图片 -->
			<li class="post">

            <span class="view"><a href="#"></a></span>
			<div class="link">
			<span class="img">
			[field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' target='_blank'><img width='196' src='{@me['litpic']}'/></a>"); [/field:array]
			</span>
			<span class="text">

            <p class="info">
                <a href="[field:arcurl/]#pic_comment" class="view" title=" 访问" >[field:click/]</a>
              <span  id="newdigg_[field:id/]">  <a href="javascript:postDigg('good',[field:id/])" class="good" title="好评" >[field:goodpost/]</a></span>
             </p>
            </span>
            </div>
            </li>

            {/dede:list}
		</ul>
	</div>

 <h2 class="next_page" style="font-size:17px;">
			 {dede:pagelist listitem="next"/}
		</h2>

</div>


<DIV style="DISPLAY: none" id=goTopBtn>回到顶部</DIV>
<SCRIPT type=text/javascript>goTopEx();</SCRIPT>
</body>
</html>
